/**
 * Created by hzq16239 on 2016/1/28.
 */
'use strict';

var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var connect = require('../configs/configs.js').mongooseCollection;

var UploadImageSchema = new Schema({
    name:{type:String,index:true},
    imagePath:{
        introImages:[String],
        mapImages:[String]
    },
    updateTime:{type:Date,index:true},
    writeTime:{type:Date,index:true}

},{
    collection:'uploadImage',
    versionKey:false

});

var UploadImage = connect.model('UploadImage',UploadImageSchema);

module.exports = UploadImage;
